-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool classification cmake #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Tiny little defensive catch to be added on the load_labels_2_config.py
and a small indentation fix, besides it is good. Be sure to check it on Lydia!
assets/config.yml
Outdated
- 0.485 | ||
- 0.456 | ||
- 0.406 | ||
classifierStd: | ||
- 0.229 | ||
- 0.224 | ||
- 0.225 | ||
- 0.229 | ||
- 0.224 | ||
- 0.225 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the same indentation as before, here is one space less.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Sorry! Fixed the config file indentation in d546ef3. Please check it out ! :)
if not os.path.isfile(args.config): | ||
_log_error("The path to the config file is not valid.") | ||
sys.exit() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it would be worth to catch the error if ai/torchscripts/labels.txt
exists since it is a manually-added file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey ! I am catching the error in the except. So if the file does not exist or the path is wrong, it will be caught! Please, have a look. I also added the success log in 2270968.
Hey @9and3 ! Checked on NUC, everything works ok! the branch can be merged :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
Implemented a CMake script that executes a Python script (load_labels_2_config.py). This script automatically updates classifier labels in assets/config.yml file by parsing them from a labels.txt file.